package com.ruoyi.biz.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 邮包对象 biz_parcel
 *
 * @author ruoyi
 * @date 2022-01-10
 */
public class BizParcel extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 邮包ID
     */
    private Long id;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 订单ID
     */
    @Excel(name = "订单ID")
    private Long orderId;

    /**
     * 邮包物件描述
     */
    @Excel(name = "邮包物件描述")
    private String itemDesc;

    /**
     * 邮包编号
     */
    @Excel(name = "邮包编号")
    private String parcelNo;

    /**
     * 国内运单号
     */
    @Excel(name = "国内运单号")
    private String internalTrackingNo;

    /**
     * 新西兰运单号
     */
    @Excel(name = "新西兰运单号")
    private String nzTrackingNo;


    /**
     * 邮包体积
     */
    @Excel(name = "邮包体积")
    private BigDecimal volume;

    /**
     * 邮包重量
     */
    @Excel(name = "邮包重量")
    private BigDecimal weight;

    /**
     * 订单编号
     */
    @Excel(name = "订单编号")
    private String orderNo;

    /**
     * 支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /**
     * 收货时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receivingTime;

    /**
     * 状态 0:待确认 1:待运输 2:运输中 3:已完成
     */
    @Excel(name = "状态 0:待确认 1:待运输 2:运输中 3:已完成")
    private Integer status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public void setItemDesc(String itemDesc) {
        this.itemDesc = itemDesc;
    }

    public String getItemDesc() {
        return itemDesc;
    }

    public void setParcelNo(String parcelNo) {
        this.parcelNo = parcelNo;
    }

    public String getParcelNo() {
        return parcelNo;
    }

    public void setVolume(BigDecimal volume) {
        this.volume = volume;
    }

    public void setInternalTrackingNo(String internalTrackingNo) { this.internalTrackingNo = internalTrackingNo; }

    public String getInternalTrackingNo() { return internalTrackingNo; }

    public void setNzTrackingNo(String nzTrackingNo) {
        this.nzTrackingNo = nzTrackingNo;
    }

    public String getNzTrackingNo() {
        return nzTrackingNo;
    }

    public BigDecimal getVolume() {
        return volume;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setReceivingTime(Date receivingTime) {
        this.receivingTime = receivingTime;
    }

    public Date getReceivingTime() {
        return receivingTime;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("itemDesc", getItemDesc())
                .append("parcelNo", getParcelNo())
                .append("volume", getVolume())
                .append("weight", getWeight())
                .append("orderNo", getOrderNo())
                .append("internalTrackingNo", getInternalTrackingNo())
                .append("nzTrackingNo", getNzTrackingNo())
                .append("payTime", getPayTime())
                .append("receivingTime", getReceivingTime())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
